package com.ssoclient.utils;

import cn.hutool.json.JSONUtil;
import com.ssoclient.entity.User;

/**
 * @author 11900
 * @version V1.0
 * @Title: ${FILE_NAME}
 * @Package com.ssoclient.utils
 * @Description: TODO
 * @date 2020/4/29 12:18
 */
public class Test {
     public static void main(String[] args) throws Exception {
     /*    String json ="{\"password\":\"admin\",\"@type\":\"com.ivan.entity.User\",\"name\":\"admin\"}";*/
         String json ="{\"password\":\"admin\",\"name\":\"admin\",\"@type\":\"com.ivan.entity.User\"}";
         User user = JSONUtil.toBean(json, User.class);
         System.out.println(user.toString());
        /* User parse = JsonUtils.parse(json, User.class);
         System.out.println(parse.toString());*/
     }
}
